package com.xinruke.hostels.reservation.interfaces.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author GuoZheng
 * @ClassName DiscountsRemainingQueryDTO
 * @date：2019/7/3
 * @version: V1.0.0
 * @description：
 */
@ApiModel("查询剩余预订优惠次数DTO")
@Data
public class DiscountsRemainingQueryDTO {


    /**
     * 证件号
     */
    @ApiModelProperty(value = "联系人id",required = true)
    @NotNull(message = "联系人id不能为空")
    private Integer contactIds;


    /**
     * 入住时间
     */
    @ApiModelProperty(value = "入住时间",required = true)
    @NotNull(message = "入住时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date ruzhushijian;


}
